
var events = require("events");

var channel = new events.EventEmitter();

channel.on("join",function(){
    console.log("welcome!");
});

channel.emit("join");